package com.stedu.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class PageController {

    //跳转到登录页
    @RequestMapping("/toLogin")
    public String toLogin(){
        return "login";
    }

    //跳转到首页
    @RequestMapping("/admin/toIndex")
    public String toIndex(){
        return "index";
    }

    //跳转到部门页
    @RequestMapping("/admin/toDepartment")
    public String toDepartment(){
        return "department";
    }

    //跳转到员工页
    @RequestMapping("/admin/toEmployee")
    public String toEmployee(){
        return "employee";
    }
}
